package cn.tedu.coolsharkmall.web;


public enum ServiceCode {
    OK(20000), //通过构造方法创建对象
    ERROR(0),
    ERROR_NOT_FOUND(40400),
    ERROR_CONFLICT(40500),
    ERROR_BAD_REQUEST(40000),
    ERROR_CONSTRAINT(40600),
    NON_KNOWN(40000);

    private Integer value;

    ServiceCode(Integer value) {
        this.value = value;
    }

    public Integer getValue(){
        return value;
    }
}
